package com.yf.weibofans
{
	import flash.display.Sprite;
	import flash.external.ExternalInterface;
	import mx.controls.Alert;

	/**
	 * ...
	 * @author yangfan1122@gmail.com
	 */
	public class Test
	{
		static public function t(_obj:Object):void
		{
			if(_obj == null)
			{
				ExternalInterface.call("test", "测试参数:null");
				trace("测试参数:null");
			}
			else
			{
				ExternalInterface.call("test", _obj.toString());
				trace(_obj.toString());
			}
		}
		
		static public function tt(_obj:Object):void
		{
			if(_obj == null)
			{
				ExternalInterface.call("test1", "测试参数:null");
				trace("测试参数:null");
			}
			else
			{
				ExternalInterface.call("test1", _obj.toString());
				trace(_obj.toString());
			}
		}
		static public function a(_obj:Object, _title:String=""):void
		{
			if(_obj == null)
			{
				Alert.show(_obj.toString(), _title);
				trace("测试参数:null");
			}
			else
			{
				Alert.show(_obj.toString(), _title);
				trace(_obj.toString());
			}
			
		}
	}
}